import jieba.analyse

with open('斗罗大陆.txt', encoding='utf-8') as f:
    s = f.read()
w = jieba.analyse.extract_tags(s, topK=10)#提取关键词
for i in w:
    print(i)
# print(w)
